package com.jjc.android.view;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Align;
import android.graphics.Path;
import android.graphics.RectF;

import com.github.mpcharting.components.LimitLine;
import com.github.mpcharting.components.YAxis;
import com.github.mpcharting.components.YAxis.AxisDependency;
import com.github.mpcharting.components.YAxis.YAxisLabelPosition;
import com.github.mpcharting.renderer.AxisRenderer;
import com.github.mpcharting.renderer.YAxisRenderer;
import com.github.mpcharting.utils.MPPointD;
import com.github.mpcharting.utils.Transformer;
import com.github.mpcharting.utils.Utils;
import com.github.mpcharting.utils.ViewPortHandler;

import java.util.List;

public class YBubbleAxisRenderer extends YAxisRenderer {

    public YBubbleAxisRenderer(ViewPortHandler viewPortHandler, YAxis yAxis, Transformer trans) {
        super(viewPortHandler, yAxis, trans);
    }

    private float foceMin = 0f,foceMax = 0f;

    public void setMinMaxLable(float min,float max){
        this.foceMin = min;
        this.foceMax = max;
    }

    @Override
    protected void computeAxisValues(float min, float max) {
        if(foceMin==foceMax){
            super.computeAxisValues(min, max);
        }else{
            super.computeAxisValues(foceMin, foceMax);
        }

    }
}
